cmake_minimum_required(VERSION 2.8)

gen_server("NESC" "FFVidClipServer" ${PROJECT_SOURCE_DIR}/src/pack/)

# 包含头文件路径
include_directories(/usr/local/ffmpeg/include)

# 链接库文件路径
link_directories(/usr/local/ffmpeg/lib)

# 链接 FFmpeg 所需的库
target_link_libraries(FFVidClipServer
    /usr/local/ffmpeg/lib/libavutil.a
    /usr/local/ffmpeg/lib/libavcodec.a
    /usr/local/ffmpeg/lib/libavformat.a
    /usr/local/ffmpeg/lib/libswscale.a
    /usr/local/ffmpeg/lib/libswresample.a
    /usr/local/ffmpeg/lib/libavfilter.a
    /usr/local/ffmpeg/lib/libavdevice.a

    z          # FFmpeg 用到 zlib
    pthread    # 多线程支持
    m          # 数学库
    dl         # 动态库加载支持
    lzma
    bz2
)

# target_link_libraries(FFVidClipServer ${LIB_MYSQL})
